<template>
  <div class="arm-control">
    <h2>Arm Control</h2>
    <div class="joint-control">
      <label for="joint1">Joint 1:</label>
      <input
        type="range"
        id="joint1"
        v-model="joint1Angle"
        min="-180"
        max="180"
      />
      <span>{{ joint1Angle }}°</span>
    </div>
    <div class="joint-control">
      <label for="joint2">Joint 2:</label>
      <input
        type="range"
        id="joint2"
        v-model="joint2Angle"
        min="-180"
        max="180"
      />
      <span>{{ joint2Angle }}°</span>
    </div>
    <div class="joint-control">
      <label for="joint3">Joint 3:</label>
      <input
        type="range"
        id="joint3"
        v-model="joint3Angle"
        min="-180"
        max="180"
      />
      <span>{{ joint3Angle }}°</span>
    </div>
    <div class="joint-control">
      <label for="joint4">Joint 4:</label>
      <input
        type="range"
        id="joint4"
        v-model="joint4Angle"
        min="-180"
        max="180"
      />
      <span>{{ joint4Angle }}°</span>
    </div>
  </div>
</template>

<style>
.arm-control {
  background-color: #ffc479;
}

.joint-control label {
  color: #fff;
}

.joint-control input {
  margin-left: 10px;
  vertical-align: middle;
  -webkit-appearance: none;
  width: 80%;
  height: 10px;
  border-radius: 5px;
  background-color: #fff;
}

.joint-control input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #007bff;
  cursor: pointer;
}

.joint-control span {
  display: inline-block;
  margin-left: 10px;
  font-weight: bold;
}
</style>
